package com.example.springsecurity.service;

import com.example.springsecurity.domain.Announcement;
import com.example.springsecurity.domain.News;
import com.example.springsecurity.domain.UploadCentre;
import com.example.springsecurity.utils.ResultBean;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface ExperimentPortalService {
    ResultBean getPortalExperiment(Integer collegeId,Integer pageNum,Integer pageSize,String projectName);

    ResultBean getNews(Integer pageNum, Integer pageSize, Integer year, Integer month,String newsTitle);

    ResultBean addNews(News news);

    ResultBean updateNews(News news);

    ResultBean getAnnouncement(Integer pageNum, Integer pageSize, Integer year, Integer month,String announcementTitle);

    ResultBean addAnnouncement(Announcement announcement);

    ResultBean updateAnnouncement(Announcement announcement);

    ResultBean getUploadInfo(Integer pageNum, Integer pageSize, Integer uploadCategory,String uploadIntroduce);

    ResultBean updateUploadInfo(UploadCentre uploadCentre);

    ResultBean addUploadInfo(MultipartFile file, UploadCentre uploadCentre);

    void downloadInfo(Integer uploadCentreId, HttpServletRequest request, HttpServletResponse response);

    ResultBean getNewsDetail(Integer newsId);

    ResultBean deleteNews(String newsId);


    ResultBean getAnnouncementId(Integer announcementId);

    ResultBean deleteAnnouncement(String announcementId);

    ResultBean deleteDownTool(String uploadCentreId);
}
